
const { last } =require('lodash')

const formatNumber = str => {
  return String.prototype.replace.call(str, /\d+(\d{4})/, (...args) => {
    return last(args).replace(args[1], '万')
  })
}


exports.formatNumber = formatNumber;
